package models

type Friends struct {
	ID int `gorm:"primary_key;AUTO_INCREMENT;cloumn:id;type:int(11) unsigned;not null" form:"id" json:"id"`
	UserId int `gorm:"cloumn:user_id;int(11) unsigned;not null" form:"user_id" json:"user_id"`
	UserFid int `gorm:"cloumn:friend_id;int(11) unsigned;not null" form:"friend_id" json:"friend_id"`
	CreatedAt int64	`gorm:"column:created_at;type:int(11) unsigned" json:"created_at"`
	UpdatedAt int64	`gorm:"column:updated_at;type:int(11) unsigned" json:"updated_at"`
}

// 设置表名
func (u *Friends) TableName() string {
	return "friends"
}